//
//  main.m
//  Wz
//
//  Created by mac on 16-5-18.
//  Copyright (c) 2016年 zz. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    
    @autoreleasepool {
        
        // insert code here...
        NSLog(@"Hello, World!,");
        NSString *whangzhan=@"www.3838438.com";
        NSDictionary *params=@{
                               @"id":@"2267327468",
                               @"sid":@"132234567",
                               @"name":@"罗佳明",
                               @"sex":@"1",
                               @"birthday":@"1996/10/19"
                               };
        NSMutableArray *arr=[NSMutableArray new];
        [params enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSString *obj, BOOL *stop) {
            NSLog(@"%@=%@",key,obj);
        }];
        NSString *wer=[arr componentsJoinedByString:@"&"];
        //wer=[wer stringByAddingPercentEncodingWithAllowedCharacters:NSStreamStatusOpening
        //     ];
        NSLog(@"%@?%@",whangzhan,wer);
        
    }
    return 0;
}



